home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / hal / scripts / hal-system-power-set-power-save < prev    next >
Text File  |  2008-10-26  |  247b  |  12 lines

  1. #!/bin/sh
  2.  
  3. . hal-functions
  4.  
  5. read value
  6.  
  7. hal_check_priv org.freedesktop.hal.power-management.set-powersave
  8. hal_call_backend $value
  9. if [ "$?" = "0" ]; then
  10.     hal-set-property --udi $UDI --key "power_management.is_powersave_set" --bool "$value"
  11. fi
  12.